<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>align-items</title>
    <style type="text/css">
        .container {
            display: flex;
            width: 80vw;
            height: 20vh;
            border: 1px solid blue;
            margin: 25px auto;
            flex-flow: column nowrap;
            justify-content: space-between;
        }
        
        .first {
            align-items: flex-start;
        }
        
        .second {
            align-items: center;
        }
        
        .third {
            align-items: flex-end;
        }
        
        .fourth {
            align-items: stretch;
        }
        
        .fifth {
            align-items: baseline;
        }
        /* 以下是关于 Flex项目 的样式 */
        
        .item {
            height: 25%;
            text-align: center;
            font-size: 30px;
        }
        
        .item:nth-child(odd) {
            background: #6666fa;
        }
        
        .item:nth-child(even) {
            background: #fa6666;
        }
    </style>
</head>

<body>

    <div class="container first">
        <div class="item item1">1</div>
        <div class="item item2">2</div>
        <div class="item item3">3</div>
    </div>

    <div class="container second">
        <div class="item item1">1</div>
        <div class="item item2">2</div>
        <div class="item item3">3</div>
    </div>

    <div class="container third">
        <div class="item item1">1</div>
        <div class="item item2">2</div>
        <div class="item item3">3</div>
    </div>

    <div class="container fourth">
        <div class="item item1">1</div>
        <div class="item item2">2</div>
        <div class="item item3">3</div>
    </div>

    <div class="container fifth">
        <div class="item item1">1</div>
        <div class="item item2">2</div>
        <div class="item item3">3</div>
    </div>

</body>

</html>